#include "stdafx.h"
#include <sgp/InputManager.h>
#include "InitGameHandler.h"
#include "GameManager.h"

namespace ja2
{
	GameManager::GameManager(sgp::VideoManager &VideoManager, sgp::CursorManager &CursorManager_, sgp::InputManager &InputManager, sgp::MouseRegionManager &MouseRegionManager)
		: m_VideoManager(VideoManager),
		m_CursorManager(CursorManager_),
		m_InputManager(InputManager),
		m_MouseRegionManager(MouseRegionManager)
	{
//		giStartingMemValue = MemGetFree( );

		//InitializeLua();
//x		is_networked = FALSE;
//x		is_client = FALSE;
//x		is_server = FALSE;
		// Now turn on the ones we are interested in watching
		JA2_REGISTER_DEBUG_TOPIC(TOPIC_JA2OPPLIST, "Reg");
		JA2_REGISTER_DEBUG_TOPIC(TOPIC_JA2INTERRUPT, "Reg");
		// Snap: Read options from an INI file in the default of custom Data directory
		// Moved this up because some settings are used during other inits
//x		LoadGameAPBPConstants();
//x		LoadGameExternalOptions();
		//lal
//x		InitSightRange();
//x		InitButtonSystem();
		//Deletes all the Temp files in the Maps\Temp directory
//x		InitTacticalSave( TRUE );
		//Init the help screen system
//x		InitHelpScreenSystem();
		//Loads the saved (if any) general JA2 game settings
//x		LoadGameSettings();

		m_pActiveHandler = IGameHandlerPtr_t(new InitGameHandler(m_VideoManager, m_State));
	}

	void GameManager::run()
	{
	}
} /*ja2*/